include_directories(
        ${PROJECT_BINARY_DIR}/util
        ${PROJECT_BINARY_DIR}/core
)

link_directories(
        ${PROJECT_BINARY_DIR}/util
        ${PROJECT_BINARY_DIR}/core
)

set(init_data_src gen_init_data.f90)

if(double_precision)
        set_source_files_properties(${init_data_src}
                PROPERTIES
                COMPILE_FLAGS -r8
        )
endif(double_precision)

add_executable(gen_init_data ${init_data_src})

target_link_libraries(gen_init_data util fpcore)

install(TARGETS gen_init_data RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX})
